YNQ  YNQ-1.5.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Auxiliary methods

Functions

NQ_BOOL ccTransportRestartRecieveThread ()
 
void ccDump (void)
 
void ccCloseAllConnections (void)
 
void ccCloseHiddenConnections (void)
 
void ccThreadSubscribe (void)
 
void ccThreadUnsubscribe (void)
 

Detailed Description

Function Documentation

NQ_BOOL ccTransportRestartRecieveThread ( )

This function must be called only by the driver. When the FUSE driver runs in regular mode (not debug) it creates a hard fork and closes parent process. This causes the receiving thread to be killed. This function is used to restart the receiving thread.

Returns
TRUE on success or FALSE on error.
Note
Currently, this function always return TRUE.
void ccDump ( void  )

This function is called by application to print all the CIFS Client tables. It is used for debugging purposes only.

void ccCloseAllConnections ( void  )

This function is called by application to close all open connections and to release resources associated with them. In this function call NQ will do the following:

  • Close all files;
  • Release outstanding searches;
  • Disconnect from shares (trees);
  • Logoff users;
  • Disconnect from servers.
void ccCloseHiddenConnections ( void  )

This function is called by application to those connections that were used implicitly and are not associated with any mount. For instance, upon this call NQ will close those connections that were open solely for network browsing. NQ will release all resources associated with the connections being closed, namely:

  • Close open files;
  • Release outstanding searches;
  • Disconnect from shares (trees);
  • Logoff users;
  • Disconnect from servers.
void ccThreadSubscribe ( void  )

Register the current system thread.

This function creates an NQ object describing the current system (application) thread. NQ expects the application to call ccThreadUnsubscribe() to release NQ resources associated with this thread. If this thread was already registered, nothing will happen.

void ccThreadUnsubscribe ( void  )

Release the resources associated with the current system thread.

NQ assumes that the current system (application) thread was registered with a ccThreadSubscribe() call. If this is not true, nothing will happen.